<script setup>
import { provide, ref } from 'vue';
import Header from '@/views/Header.vue';
// import Home from '@/views/home.vue'

// 窗口显示状态
const isShow = ref(false)
const setIsShow = (value) => {
    isShow.value = value
}


provide('dialog-visible', {
    isShow,
    setIsShow,
})

// url
const dialogUrl = ref('https://www.baidu.com')
const setDialogUrl = (url)=>{
    dialogUrl.value = url
}
provide('dialog-url',{
    dialogUrl,
    setDialogUrl
})

// 关键字
const keywords = ref('')
const setKeywords = (key)=>{
    keywords.value  = key
}
provide('searchbar-keywords',{
    keywords,
    setKeywords
})
</script>

<template>
    <!-- <Home></Home> -->
    <Header></Header>
    <router-view></router-view>
</template>

<style lang="css"></style>
